package com.study.talk.netty.message;


import androidx.annotation.NonNull;

import com.study.common.annotation.Desc;

public class Session {

    @Desc("用户id")
    private Integer userId;

    @Desc("用户昵称")
    private String userName;

    @Desc("用户头像地址")
    private String avatar;

    public Session(Integer userId, String userName, String avatar) {
        this.userId = userId;
        this.userName = userName;
        this.avatar = avatar;
    }

    @NonNull
    @Override
    public String toString() {
        return userId + ":" + userName;
    }


    public Session() {
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}